/**
 * 
 */
package tani.bnn.com.mbilling.core;

import java.sql.Date;

/**
 * @author netesh.thukral
 *
 */
public class DailySalePurchase {
	private	int		id;
	private	String	companyName;
	private	String	categoryName;
	private	String	name;
	private	String	searchCode;
	private	String	model;
	private	String	type;
	private int		quantity;
	private int		price;
	private int 	stock;
	private Date	sopDate;
	private int 	pendingStock;
	private int		profit;
	/**
	 * @return the id
	 */
	public int getId() {
		return id;
	}
	/**
	 * @param id the id to set
	 */
	public void setId(int id) {
		this.id = id;
	}
	/**
	 * @return the companyName
	 */
	public String getCompanyName() {
		return companyName;
	}
	/**
	 * @param companyName the companyName to set
	 */
	public void setCompanyName(String companyName) {
		this.companyName = companyName;
	}
	/**
	 * @return the categoryName
	 */
	public String getCategoryName() {
		return categoryName;
	}
	/**
	 * @param categoryName the categoryName to set
	 */
	public void setCategoryName(String categoryName) {
		this.categoryName = categoryName;
	}
	/**
	 * @return the name
	 */
	public String getName() {
		return name;
	}
	/**
	 * @param name the name to set
	 */
	public void setName(String name) {
		this.name = name;
	}
	/**
	 * @return the searchCode
	 */
	public String getSearchCode() {
		return searchCode;
	}
	/**
	 * @param searchCode the searchCode to set
	 */
	public void setSearchCode(String searchCode) {
		this.searchCode = searchCode;
	}
	/**
	 * @return the model
	 */
	public String getModel() {
		return model;
	}
	/**
	 * @param model the model to set
	 */
	public void setModel(String model) {
		this.model = model;
	}
	/**
	 * @return the type
	 */
	public String getType() {
		return type;
	}
	/**
	 * @param type the type to set
	 */
	public void setType(String type) {
		this.type = type;
	}
	/**
	 * @return the quantity
	 */
	public int getQuantity() {
		return quantity;
	}
	/**
	 * @param quantity the quantity to set
	 */
	public void setQuantity(int quantity) {
		this.quantity = quantity;
	}
	/**
	 * @return the price
	 */
	public int getPrice() {
		return price;
	}
	/**
	 * @param price the price to set
	 */
	public void setPrice(int price) {
		this.price = price;
	}
	/**
	 * @return the stock
	 */
	public int getStock() {
		return stock;
	}
	/**
	 * @param stock the stock to set
	 */
	public void setStock(int stock) {
		this.stock = stock;
		setPendingStock(stock);
	}
	/**
	 * @return the sopDate
	 */
	public Date getSopDate() {
		return sopDate;
	}
	/**
	 * @param sopDate the sopDate to set
	 */
	public void setSopDate(Date spDate) {
		this.sopDate = spDate;
	}
	/**
	 * @return the pendingStock
	 */
	public int getPendingStock() {
		return pendingStock;
	}
	/**
	 * @param pendingStock the pendingStock to set
	 */
	public void setPendingStock(int pendingStock) {
		this.pendingStock = pendingStock;
	}
	/**
	 * @param add the add to stock and pendingStock to set
	 */
	public void addStock(int add){
		this.stock += add;
		this.pendingStock += add;
	}
	/**
	 * @return the profit
	 */
	public int getProfit() {
		return profit;
	}
	/**
	 * @param profit the profit to set
	 */
	public void setProfit(int profit) {
		this.profit = profit;
	}
}
